package factory;

import utils.UIUtils;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.widget.ListView;


public class ListViewFactory {
	public static ListView createListView(){
		ListView listView = new ListView(UIUtils.getContext());

		listView.setFastScrollEnabled(true);
		listView.setCacheColorHint(Color.TRANSPARENT);
		//设置点击的时候没有颜色
		listView.setSelector(new ColorDrawable(Color.TRANSPARENT));
		return listView;
	}
}
